/**
 * 注册
 */
export interface RegisterForm {
  tenantId: string
  username: string
  password: string
  confirmPassword?: string
  code?: string
  uuid?: string
  userType?: string
}

/**
 * 登录请求
 */
export interface LoginData {
  tenantId?: string
  username?: string
  password?: string
  rememberMe?: boolean
  socialCode?: string
  socialState?: string
  source?: string
  code?: string
  uuid?: string
  clientId: string
  grantType: string
}

/**
 * 登录响应
 */
export interface LoginResult {
  access_token: string
  routerPath: string
}

/**
 * 验证码返回
 */
export interface VerifyCodeResult {
  captchaEnabled: boolean
  uuid?: string
  img?: string
}

/**
 * 租户
 */
export interface TenantVO {
  companyName: string
  domain: any
  tenantId: string
}

export interface TenantInfo {
  tenantEnabled: boolean
  voList: TenantVO[]
}

export enum AddType {
  SPACE = 1,
  MEETING_ROOM = 2,
  ATTRACT = 3,
  CONTRACT_LEASE = 4,
  CONTRACT_SERVICE = 5,
  COMMISSION = 6,
  CUSTOMER = 7,
  CANAL_CONTACT = 8,
  CANAL = 9,
  RECEIPT_BILL = 10,
  PAY_BILL = 11,
}

export interface CascaderProps {
  value: string
  label: string
  children: CascaderProps[]
}
